package com.atguli.gulimall.product.service;

import com.atguli.common.entity.QueryWrapperVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguli.common.utils.PageUtils;
import com.atguli.gulimall.product.entity.CategoryEntity;

import java.util.List;

/**
 * 商品三级分类
 *
 * @author kotori
 * @email 1012403910@qq.com
 * @date 2021-01-18 21:00:51
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(QueryWrapperVO params);

    /**
     * 获取菜单树形结构
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 自定义批量删除方法
     * @param asList
     */
    void removeMenuByIds(List<Long> asList);

    /**
     * 查询三级分类的完整路径
     * @param catelogId
     * @return
     */
    Long[] findCatePath(Long catelogId);

    /**
     * 级联更新
     * @param category
     */
    void updateByCascade(CategoryEntity category);
}

